package com.tzx.lifehousekeeper.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @Author tuzongxun
 * @Date 2021/10/6
 */
@Data
public class UserDto {

	private String id;

	private String account;

	private String password;

	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date createTime;

	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date updateTime;

	private String updateUser;

	private String userId;

	private String name;

	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date birthday;

	private String phone;

	private String job;

	private String sex;

	public UserDto(){

	}

	public UserDto(String id, String account, String password, Date createTime, Date updateTime, String updateUser, String userId, String name, Date birthday, String phone, String job, String sex) {
		this.id = id;
		this.account = account;
		this.password = password;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.updateUser = updateUser;
		this.userId = userId;
		this.name = name;
		this.birthday = birthday;
		this.phone = phone;
		this.job = job;
		this.sex = sex;
	}
}
